/**
 * 
 */
package com.feib.stms.batch.dao.rowmapper;

import java.sql.ResultSet;


import org.springframework.jdbc.core.RowMapper;


import com.feib.stms.batch.domain.Group;
import com.feib.stms.batch.domain.Securities;


/**
 * @author Jimmy Liu
 *
 */
public class SecuritiesRowMapper extends BaseRowMapper<Securities> implements RowMapper<Securities> {

	private static final long serialVersionUID = 2560985918019233712L;
	

	
	
	public SecuritiesRowMapper() {
		super(Securities.class);
		}
	
	
	@Override
	protected Securities doOtherMapRow(ResultSet rs, int rowNumber, Securities entity) {
		
		Group group = new Group();
		group.setGroupPk((Long)getColumnValue(rs, "GROUP_PK", Long.class));
		group.setGroupNo((String)getColumnValue(rs, "GROUP_NO", String.class));
		group.setGroupName((String)getColumnValue(rs, "GROUP_NAME", String.class));
		group.setGroupType((Integer)getColumnValue(rs, "GROUP_TYPE", Integer.class));
		entity.setGroup(group);
		
			
		
		return entity;
	}

}
